<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<title>模拟发送一条上行短信</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<script type="text/javascript">
function countChar(content, spanName) {
	document.getElementById(spanName).innerHTML = document
			.getElementById(content).value.length;
}
</script>
	</head>

	<body>
		<form action="addmo" method="post">
			<div style="overflow: center; margin: 36px auto auto 128px">
				<h2>
					<font color="grey">模拟发送一条上行短信</font>
				</h2>
				<hr>
				<div>
					<label>
						<font color="red" size="2">*</font>
						<font color="grey" size="2">手机号码</font>
					</label>
					<input name="phone" type="text" value="" maxLength="11" />
				</div>
				<div>
					<label>
						<font color="grey" size="2">ＳＰ子号码 </font>
					</label>
					<input name="sub_spnumber" type="text" value="" maxLength="11" />
				</div>
				<div>
					<label>
						<font color="red" size="2">*</font>
						<font color="grey" size="2">短信内容</font>
					</label>
					<textarea name="content" id="content" cols="36" rows="6"
						onkeydown="countChar('content','counter');"
						onkeyup="countChar('content','counter');"></textarea>
					<br />
				</div>
				<hr>
				<div>
					<font color="grey" size="2">已输入</font>
					<font id="counter" color="red" size="4">0</font>
					<font color="grey" size="2">字...</font>
					<input type="submit" value="发 送" style="width: 6em;" />
				</div>
			</div>
		</form>
	</body>
</html>
